package com.theyeasy.dvmini.dataobject.vo;

import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

public class Vo_msg implements Serializable {
	@Autowired
	public int code;

	@Autowired
	public Object data;

	@Autowired
	public String msg;

	@Autowired 
	public int newid;
	
	@Autowired
	public int total;
	
	public Vo_msg(int code, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
	
	public Vo_msg(int code, Object data,String msg) {
		this(code,data);
		this.data = data;
	}
	
	public Vo_msg(int code,Object data,int total)
	{
		this(code,data);
		this.total = total;
	}
	/*
	 * 新增保存成功时，调用此构造方法
	 * newid:新记录的id
	 */
	public Vo_msg(int newid) {
		this(0,"","保存成功!");
		this.newid = newid;		
	}
		
}
